/**   
* @Title: Student.java 
* @Package com.yao.demo1 
* @Description: TODO(用一句话描述该文件做什么) 
* @author yaoym
* @date 2018年5月29日 下午10:10:44 
* @version V1.0   
*/
package com.yao.demo4;

import java.io.Serializable;

/**
 * @Description 深度拷贝
 * @author yaoym
 * @date 2018年5月29日 下午10:10:44
 * @version V1.0
 */
public class Student implements Serializable {

	private String name;

	private int age;

	private Address address;

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the age
	 */
	public int getAge() {
		return age;
	}

	/**
	 * @param age
	 *            the age to set
	 */
	public void setAge(int age) {
		this.age = age;
	}

	/**
	 * @return the address
	 */
	public Address getAddress() {
		return address;
	}

	/**
	 * @param address
	 *            the address to set
	 */
	public void setAddress(Address address) {
		this.address = address;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Student [name=" + name + ", age=" + age + ", address=" + address + ", hashCode()=" + hashCode() + "]";
	}

}
